package com.example.sxt_practise.GOF23.flyweight;

/**
 * @author gaofeng
 * @date 2022年05月24日 20:33
 */
public class Client {
    public static void main(String[] args) {
        ChessFlyWeight chessFlyWeight1 = ChessFlyWeightFactory.getChessFlyWeight("黑色") ;
        ChessFlyWeight chessFlyWeight2 = ChessFlyWeightFactory.getChessFlyWeight("黑色") ;

        chessFlyWeight1.display(new Coordinate(10, 15));
    }
}
